<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ taglib uri='http://java.sun.com/portlet' prefix='portlet'%>
<%@ page import="javax.portlet.*"%>
<%@ page import="com.x4ee.soa.portal.framework.tools.*"%>

<%String contextPath = request.getContextPath();%>
<portlet:defineObjects />
<link href='<%=contextPath%><%=ConfigUtils.getResourceBasePath(renderRequest)%>/css/portlet.css' rel='stylesheet' type='text/css'/>
<SCRIPT language="JavaScript">var tImagePath="<%=contextPath%><%=ConfigUtils.getResourceBasePath(renderRequest)%>/image/";</SCRIPT>
<script language="JavaScript"  type="text/javascript" src="<%=contextPath%><%=ConfigUtils.getResourceBasePath(renderRequest)%>/javascript/TimePicker.js"></script>

<table>
	<tr>
		<td valign="top">
			<table>
				<tr><td><a href='<portlet:renderURL portletMode="EDIT"><portlet:param name="frameworkUri" value="EditIndex"/></portlet:renderURL>'>[发布课程]</a></td></tr>
				<tr><td><a href='<portlet:renderURL portletMode="HELP"><portlet:param name="frameworkUri" value="TrainingSubjectCreate"/></portlet:renderURL>'>[授课科目]</a></td></tr>				
				<tr><td><a href='<portlet:renderURL portletMode="HELP"><portlet:param name="frameworkUri" value="TrainingAddressCreate"/></portlet:renderURL>'>[授课地点]</a></td></tr>
				<tr><td><a href='<portlet:renderURL portletMode="EDIT"><portlet:param name="frameworkUri" value="EditIndex"/></portlet:renderURL>'>[优惠策略]</a></td></tr>				
			</table>
		</td>
		<td>
			<table>
				<form method='post' action='<portlet:actionURL><portlet:param name="frameworkUri" value="trainingSubjectCreateAction"/></portlet:actionURL>'>
					<tr><th colspan="2" align="left" style="font-size: 13">新增授课科目</th></tr>
					<tr><td colspan="2"><table><tr><td align="left">培训编号:</td><td><input name="code" type="text" size="20" class="textfield"/></td></tr></table></td></tr>
					<tr><td colspan="2"><table><tr><td align="left">课程概要:</td><td><textarea name="summary" type="text" cols="40" rows="3"></textarea></td></tr></table></td></tr>
					<tr><td colspan="2"><table><tr><td align="left">课程天数:</td><td><input name="period" type="text" size="20" class="textfield"/></td></tr></table></td></tr>
					<tr><td colspan="2"><table><tr><td align="left">开始时间:</td><td><input name='startTime' type='text' value='9:00 am' size=8 maxlength=8 onblur="validateDatePicker(this)"><img src="<%=contextPath%><%=ConfigUtils.getResourceBasePath(renderRequest)%>/image/timepicker.gif" border="0" onClick="selectTime(this,startTime)" style="cursor:hand"></td></tr></table></td></tr>
					<tr><td colspan="2"><table><tr><td align="left">结束时间:</td><td><input name="endTime" type='text' value='4:00 pm' size=8 maxlength=8 onblur="validateDatePicker(this)"><img src="<%=contextPath%><%=ConfigUtils.getResourceBasePath(renderRequest)%>/image/timepicker.gif" border="0" onClick="selectTime(this,startTime)" style="cursor:hand"></td></tr></table></td></tr>
					<tr><td colspan="2"><table><tr><td align="left">课程描述:</td><td><textarea name="description" type="text" cols="40" rows="3"></textarea></td></tr></table></td></tr>
					<tr><td colspan="2"><table><tr><td align="left">课程价格:</td><td><input name="price" type="text" size="6" class="textfield"/>&nbspRMB</td></tr>
					<tr><td colspan="2"><table><tr><td align="left"><input name="submitTrainingSubjectCreate" type="submit" value="提交"/></td><td><small style="color:#f21212">内容有误，请重新填写!</small><td></tr></table></td></tr>
				</form>	
			</table>
		</td>
	</tr>
</table>
